﻿<?php
/*
 * Template Name:淘宝热卖
 * 
 */
get_header(); ?>

<div class="page_width">
	<div class="masonry_list clearfix">
		<?php if( have_posts() ) : while( have_posts() ) : the_post();?>
		<div class="item">
			<div class="list_item">
				<ul class="pic">
					<li>
						<a style="width:200px;" href="<?php the_permalink() ?>" target="_blank">
						<?php
		                  $picurl = get_post_img();
		                  echo '<img src="'.$picurl.'" alt="'.$post->post_title.'" width="200" />'
						?>
						</a>
						<!--
						<p>￥<?php echo substr(get_post_meta($post->ID, "good_price", true),0,strlen(get_post_meta($post->ID, "good_price", true))-3); ?></p>
						-->
					</li>
				</ul>
				<div class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
			</div>
		</div>
		<?php endwhile; endif;?>
	</div>
</div>

<?php get_footer(); ?>